// 公司管理中心——我的消息

var News = Vue.component('news', {

    data() {
        return {
            linkArray: [] // 路由
        }
    },
    
    template: `<div class="common__info__box">
                    <div class="common__info__tap">
                        <router-link v-for="(item, index) in linkArray" :key="index" tag="span" :to="{name: item.name}">{{item.text}}</router-link>
                    </div>
                    <div class="common__info__con">
                        <router-view></router-view>
                    </div>
                </div>`,
    mounted() {

    },

    methods: {
        
    },

    watch: {
        '$route' (to, from) {

        }
    },

    created() {
        this.linkArray = [
            {
                name: 'NFactory',
                text: '公司消息'
            },{
                name:'NRecruit',
                text: '招聘消息'
            },{
                name:'NInside',
                text: '内部消息'
            },{
                name:'NSystem',
                text: '系统消息'
            },{
                name:'NSoon',
                text: '准消息'
            }
        ]
    },
    
})